package com.czxy.util;

import java.util.Random;

/**
 * @author 张青卯
 */
public class GetRandomCodeUtil {

    public static String getCode(){
        StringBuilder code = new StringBuilder();
        int a = 6;
        Random random = new Random();
        for(int i=0;i<a;i++){
            int j = random.nextInt(10);
            code.append(j);
        }
        return code.toString();
    }



}
